<% content_for :css do %>
  <%= stylesheet_link_tag 'new_or_edit','tools_new_or_edit' %>
<% end %>
<%= javascript_include_tag :ckeditor %>
<div class='new_or_edit'>
  <div class='title'>
    <%= image_tag "tools/edit_tool.gif" %>
  </div>
  <div class='body'>    
    <%= render :file => 'tools/_form.html'%>    
  </div>
  <div class='buttons'>
    <%= link_to_function "点击保存吐司", "$('new_or_edit_tool_form').submit()", :class => :submit %>
    <%= link_to "返回吐司", tool_url(@tool) , :class => :return %>
  </div>
</div>  